import { OrgServiceApi } from "./_org";
import { AxiosResponse } from "axios";
import { objectToUrlParams } from "@/utils/common";
import service from "@/api";

class UserDeptServiceApi extends OrgServiceApi {
  associateDeptUser(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/associateDeptUser";
    url += objectToUrlParams(params, true);
    return service.post(url, bean);
  }
}
const userDeptServiceApi = new UserDeptServiceApi("/UserDeptService");

export default userDeptServiceApi;
